﻿using System.Collections.Generic;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data.Interfaces
{
    public interface ICustomerDao
    {
        int GetCustomerCountByFilter(string name, int customerGroupId);

        List<Customer> GetCustomersByFilter(string name, int customerGroupId, int jtStartIndex, int jtPageSize,
                                            string jtSorting);

        Customer AddCustomer(Customer customer);
        void UpdateCustomer(Customer customer);
        void DeleteCustomer(int customerId);
        int GetMaxId();
        int GetCurrentIdentity();
        Customer GetById(int id);
    }
}
